package com.zhixi.pattern.important.proxypattern.cglib;

import com.zhixi.pattern.important.proxypattern.cglib.operation.Cat;
import com.zhixi.pattern.important.proxypattern.cglib.operation.ProxyFactory;

/**
 * cglib代理（需要导包，spring-aspects）
 *
 * @作者 ShuHaoNan
 * @邮箱 shuhaonan1@gmail.com
 * @时间 2020/11/15 18:10
 */
public class CglibProxyPattern {

    public static void main(String[] args) {
        Cat cat = (Cat) new ProxyFactory(new Cat()).getProxyInstance();
        cat.shout("汤姆");
    }

}
